const mongoose = require("mongoose");

const Schema = mongoose.Schema;
let bannerSchema = new Schema({
  path: { type: String, required: true },
  pushState: { type: String, default: "0" }, // 1发布 0未发布
  link: { type: String, default: "/" },
  ctime: { type: Date, default: Date.now },
});

let bannerModel = mongoose.model("banner", bannerSchema);

module.exports = bannerModel;
